<!DOCTYPE html>
<html>	
<head>
<title>Login</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<meta name="keywords" content="Flat Dark Web Login Form Responsive Templates, Iphone Widget Template, Smartphone login forms,Login form, Widget Template, Responsive Templates, a Ipad 404 Templates, Flat Responsive Templates" />
<link href="__PUBLIC__/css/style.css" rel='stylesheet' type='text/css' />
<script src="__PUBLIC__/js/jquery.min.js"></script>
</head>
<body>
 <!--SIGN UP-->
 <h1>管理登录</h1>
<div class="login-form">
	<div class="close"> </div>
		<div class="head-info">
			<label class="lbl-1"></label>
			<label class="lbl-2"></label>
			<label class="lbl-3"> </label>
		</div>
			<div class="clear"></div>
	<div class="avtar">
		<img src="__PUBLIC__/images/avtar.png" />
	</div>
		<form action="{:U('index/login')}" method="post">
			<input type="text" autocomplete="off"  class="username" name="username" placeholder="用户名"><p class="reminder-1"></p>
				<div class="key">
			<input type="password" class="password" name="password" placeholder="密码"><p class="reminder-2"></p>
				</div>
			<div class="signin">
				<input type="submit" value="登录" >
			</div>
		</form>
</div>
 <div class="copy-rights">
	<p>Copyright &copy; 2008.Copyright(C)2008 <a href="http://www.doctorcao.com" target="_blank">	天津曹开镛中医医院</a> All Rights Reserved
	</p> 
	<p>津ICP备13001893号</p>
	<p>津卫（中医）网复审〔2015〕第0005号</p>
</div>
<script>$(document).ready(function() {
	$('.close').on('click', function(){
		$('.login-form').fadeOut('slow', function(){
	  		$('.login-form').remove();
		});
	});	
	//点击提交判断用户名和密码是否为空!
	function is_empty(){
		$('.signin input').bind('click',function(){
			if( $('input.username').val() == '' ){
					$('p.reminder-1').html('用户名不能为空');
					return false;
			}
			else if( $('input.password').val() == '' ){
				$('p.reminder-2').html('密码不能为空');	
				return false;
			}
		});
	}
	is_empty();
	//获取url参数值
	function getQueryString(name) {
	    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
	    var r = window.location.search.substr(1).match(reg);
	    if (r != null) return unescape(r[2]); return null;
	}

	//如果用户名和密码不正确，给予提示
	if(  getQueryString("x")  ){
		
		$('p.reminder-1').html('用户名或密码不正确');
	} 
	
});
</script>
</body>
</html>